﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sunboxsoft.ASMS.Server.Domain.Entity
{
    /// <summary>
    /// 结算单
    /// </summary>
    public class ESettlementBill
    {
        public Guid Id { get; set; }
        public string Number { get; set; }
        public Guid BusinessId { get; set; }
        public Guid StationId { get; set; }
        /// <summary>
        /// 维修单号
        /// </summary>
        public Guid MaintenanceBillId { get; set; }
        /// <summary>
        /// 客户Id
        /// </summary>
        public Guid CustomerId { get; set; }
        /// <summary>
        /// 车辆Id
        /// </summary>
        public Guid AutomobileId { get; set; }

        /// <summary>
        /// 账单金额
        /// </summary>
        public decimal Amount { get; set; }

        /// <summary>
        /// 花费的余额
        /// </summary>
        public decimal SpendBalance { get; set; }

        /// <summary>
        /// 花费的积分
        /// </summary>
        public decimal SpendPoint { get; set; }

        /// <summary>
        /// 支付的金额
        /// </summary>
        public decimal? PaidAmount { get; set; }
        /// <summary>
        /// 支付日期
        /// </summary>
        public DateTime? PaidTime { get; set; }

        /// <summary>
        /// 挂账金额
        /// </summary>
        public decimal CreditAmount { get; set; }

        /// <summary>
        /// 套餐减少的金额
        /// </summary>
        public decimal PkgReduceAmount { get; set; }

        /// <summary>
        /// 收银员
        /// </summary>
        public string Cashier { get; set; }

        /// <summary>
        /// 票据类型
        /// </summary>
        public string InvoiceType { get; set; }

        /// <summary>
        /// 票据编号
        /// </summary>
        public string InvoiceNumber { get; set; }

        public string Memo { get; set; }
        public string CheckOutMemo { get; set; }

        public int Status { get; set; }
        public string Creator { get; set; }

        public DateTime CreatedTime { get; set; }
    }
}
